﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using emp.Model;
using emp.ProcessFlow;

public partial class basedata_Task_Schedule_Task_Schedule_SetupDel : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            string sMcdUid = "";
            if (string.IsNullOrEmpty(Request.Params["id"]) == false)
            {
                //获得此记录所在页面数
                string sCurPage = Request.Params["cur_page"];
                if (string.IsNullOrEmpty(sCurPage))
                {
                    sCurPage = "0";
                }

                sMcdUid = Request.Params["id"];
                // use the business logic tier to fetch the data


                TaskScheduleSetupController cellController = new TaskScheduleSetupController();
                if (!cellController.Deltet(int.Parse(sMcdUid.Trim()), int.Parse(sCurPage.Trim())))
                {
                    /*
                    RequiredFieldValidator RFV_typeName = (RequiredFieldValidator)chnlTypeInfo.Items[0].FindControl("RFV_type_name");

                    RFV_typeName.ErrorMessage = MSG_FAILURE;
                    RFV_typeName.IsValid = false;
                     */
                    Response.Write("删除失败！");
                }

            }
        }
    }
}
